using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region BaoInfo

	/// <summary>
	/// BaoInfo object for NHibernate mapped table 'BaoInfo'.
	/// </summary>
	public class BaoInfo
	{
		#region Member Variables
		
		protected int _id;
		protected DateTime _addDate;
		protected string _classType;
		protected string _userName;
		protected string _age;
		protected string _sex;
		protected string _zhuanye;
		protected string _edu;
		protected string _card;
		protected string _birthDay;
		protected string _minzu;
		protected string _jiguan;
		protected string _school;
		protected string _height;
		protected string _weight;
		protected string _address;
		protected string _postCode;
		protected string _area;
		protected string _qQ;
		protected string _mobilPhone;
		protected string _email;
		protected string _telephone;
		protected string _status;
		protected string _message;
		protected bool _readStatus;
		protected string _netAddress;
		protected string _howknow;
		protected bool _flagStatus;
		protected string _flagStatusMessage;

		#endregion

		#region Constructors

		public BaoInfo() { }

		public BaoInfo( DateTime addDate, string classType, string userName, string age, string sex, string zhuanye, string edu, string card, string birthDay, string minzu, string jiguan, string school, string height, string weight, string address, string postCode, string area, string qQ, string mobilPhone, string email, string telephone, string status, string message, bool readStatus, string netAddress, string howknow, bool flagStatus, string flagStatusMessage )
		{
			this._addDate = addDate;
			this._classType = classType;
			this._userName = userName;
			this._age = age;
			this._sex = sex;
			this._zhuanye = zhuanye;
			this._edu = edu;
			this._card = card;
			this._birthDay = birthDay;
			this._minzu = minzu;
			this._jiguan = jiguan;
			this._school = school;
			this._height = height;
			this._weight = weight;
			this._address = address;
			this._postCode = postCode;
			this._area = area;
			this._qQ = qQ;
			this._mobilPhone = mobilPhone;
			this._email = email;
			this._telephone = telephone;
			this._status = status;
			this._message = message;
			this._readStatus = readStatus;
			this._netAddress = netAddress;
			this._howknow = howknow;
			this._flagStatus = flagStatus;
			this._flagStatusMessage = flagStatusMessage;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		public  virtual string ClassType
		{
			get { return _classType; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for ClassType", value, value.ToString());
				_classType = value;
			}
		}

		public  virtual string UserName
		{
			get { return _userName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserName", value, value.ToString());
				_userName = value;
			}
		}

		public  virtual string Age
		{
			get { return _age; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Age", value, value.ToString());
				_age = value;
			}
		}

		public  virtual string Sex
		{
			get { return _sex; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Sex", value, value.ToString());
				_sex = value;
			}
		}

		public  virtual string Zhuanye
		{
			get { return _zhuanye; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Zhuanye", value, value.ToString());
				_zhuanye = value;
			}
		}

		public  virtual string Edu
		{
			get { return _edu; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Edu", value, value.ToString());
				_edu = value;
			}
		}

		public  virtual string Card
		{
			get { return _card; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Card", value, value.ToString());
				_card = value;
			}
		}

		public  virtual string BirthDay
		{
			get { return _birthDay; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for BirthDay", value, value.ToString());
				_birthDay = value;
			}
		}

		public  virtual string Minzu
		{
			get { return _minzu; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Minzu", value, value.ToString());
				_minzu = value;
			}
		}

		public  virtual string Jiguan
		{
			get { return _jiguan; }
			set
			{
				if ( value != null && value.Length > 150)
					throw new ArgumentOutOfRangeException("Invalid value for Jiguan", value, value.ToString());
				_jiguan = value;
			}
		}

		public  virtual string School
		{
			get { return _school; }
			set
			{
				if ( value != null && value.Length > 150)
					throw new ArgumentOutOfRangeException("Invalid value for School", value, value.ToString());
				_school = value;
			}
		}

		public  virtual string Height
		{
			get { return _height; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Height", value, value.ToString());
				_height = value;
			}
		}

		public  virtual string Weight
		{
			get { return _weight; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Weight", value, value.ToString());
				_weight = value;
			}
		}

		public  virtual string Address
		{
			get { return _address; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Address", value, value.ToString());
				_address = value;
			}
		}

		public  virtual string PostCode
		{
			get { return _postCode; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for PostCode", value, value.ToString());
				_postCode = value;
			}
		}

		public  virtual string Area
		{
			get { return _area; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Area", value, value.ToString());
				_area = value;
			}
		}

		public  virtual string QQ
		{
			get { return _qQ; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for QQ", value, value.ToString());
				_qQ = value;
			}
		}

		public  virtual string MobilPhone
		{
			get { return _mobilPhone; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for MobilPhone", value, value.ToString());
				_mobilPhone = value;
			}
		}

		public  virtual string Email
		{
			get { return _email; }
			set
			{
				if ( value != null && value.Length > 150)
					throw new ArgumentOutOfRangeException("Invalid value for Email", value, value.ToString());
				_email = value;
			}
		}

		public  virtual string Telephone
		{
			get { return _telephone; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Telephone", value, value.ToString());
				_telephone = value;
			}
		}

		public  virtual string Status
		{
			get { return _status; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Status", value, value.ToString());
				_status = value;
			}
		}

		public  virtual string Message
		{
			get { return _message; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Message", value, value.ToString());
				_message = value;
			}
		}

		public  virtual bool ReadStatus
		{
			get { return _readStatus; }
			set { _readStatus = value; }
		}

		public  virtual string NetAddress
		{
			get { return _netAddress; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for NetAddress", value, value.ToString());
				_netAddress = value;
			}
		}

		public  virtual string Howknow
		{
			get { return _howknow; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Howknow", value, value.ToString());
				_howknow = value;
			}
		}

		public  virtual bool FlagStatus
		{
			get { return _flagStatus; }
			set { _flagStatus = value; }
		}

		public  virtual string FlagStatusMessage
		{
			get { return _flagStatusMessage; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for FlagStatusMessage", value, value.ToString());
				_flagStatusMessage = value;
			}
		}

		

		#endregion
	}
	#endregion
}